<script setup>
import Mock from "./views/Mock.vue";
</script>

<template>
  <div class="wrap">
    <div class="nav">
      <!-- 用于路由跳转到的router-link -->
      <router-link to="/" class="gap">GO 首页</router-link>&nbsp;&nbsp;
      <router-link to="/mock" class="gap">Go Mock</router-link>&nbsp;&nbsp;
      <router-link to="/store" class="gap">Go 状态管理</router-link>&nbsp;&nbsp;
      <router-link to="/passvalue" class="gap">Go 父子传值</router-link
      >&nbsp;&nbsp;
      <router-link to="/valuetocom" class="gap">Go 组件间通信</router-link>
    </div>
    <div class="container">
      <!-- 用于展示不同路由下的组件 -->
      <router-view></router-view>
    </div>
  </div>

  <!-- <Mock></Mock> -->
</template>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
.nav {
  width: 590px;
  margin: auto;
}
.gap {
  font-size: 20px;
  font-weight: 600;
}
.container {
  margin-top: 35px;

  text-align: center;
}
</style>
